import service from "@/api/index";

/**资讯 */
const Informtion_API = "/api/News/";

export default {
	GetInformationDtoPageApi: (params: object) => {
		//获取资讯列表
		return service.post(`${Informtion_API}GetInformationDtoPage`, params);
	},
	AddInformtionApi: (params: object) => {
		//新增资讯
		return service.post(`${Informtion_API}AddInformation`, params);
	},
	UpdateInformtionApi: (params: object) => {
		//更新资讯
		return service.post(`${Informtion_API}UpdateInformation`, params);
	},
	UpdateDeleteInformtionApi: (params: object) => {
		//删除资讯
		return service.post(`${Informtion_API}DeleteInformation`, params);
	},
	GetByIdUpdateNewsApi: (Id: any) => {
		//获取当前标识下的资讯
		return service.get(`${Informtion_API}GetByIdUpdateNews?Id=` + Id);
	}
};
